new Cogl.Pipeline now constructs a GObject via g_object_new and not via
cogl_pipeline_new. Construction via g_object_new requires a some
construct only parameters so either way, this call doesn't work anymore.
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3144
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3057>
let coglContext = framebuffer.get_context();
let alloc = this.get_allocation_box();
- let pipeline = new Cogl.Pipeline(coglContext);
+ let pipeline = Cogl.Pipeline.new(coglContext);
pipeline.set_color4ub(255, 0, 0, 255);
framebuffer.draw_rectangle(pipeline,
let color = new Cogl.Color();
color.init_from_4ub(0xff, 0, 0, 0xc4);
- this._pipeline = new Cogl.Pipeline(coglContext);
+ this._pipeline = Cogl.Pipeline.new(coglContext);
this._pipeline.set_color(color);
}